package com.qiche.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.qiche.aspect.Result;
import com.qiche.enums.ResultEnum;
import com.qiche.requestpram.CardSubsidyParam;
import com.qiche.service.CardSubsidyService;

/**
 * @author LB
 *
 * @date 2018年5月18日
 */
@RestController
@RequestMapping("/merchant")
public class CardSubsidyController {

	@Autowired
    private CardSubsidyService cardSubsidyService;

    @PostMapping("/cardSubsidy")
    public Result<?> miniCardSubsidy(@RequestBody CardSubsidyParam cardSubsidyParam) throws Exception{
    	Result<?> status = cardSubsidyService.addCardSubsidy(cardSubsidyParam);
        return status;
    }
    

}
